<?php

use Phinx\Migration\AbstractMigration;

class AddColumnTenantIdInEpisodeAllocationTable extends AbstractMigration
{
    public function up()
    {
        $this->table("episode_allocation")
            ->addColumn("tenant_id", 'integer', [
                "limit" => 11,
                'null' => false,
                'default' => 0,
                'signed' => false,
                'comment' => '租户id',
            ])
            ->save();
    }

    public function down()
    {
        $this->table("episode_allocation")->removeColumn("tenant_id")->save();
    }
}
